<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:p="http://primefaces.org/ui"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>
    <h:body>


        <p:fieldset legend="#{myUserController.selected.firstName}" >

            <h:form>  




                <p:dataTable id="ticketList" value="#{ticketController.getMyTickets()}" var="tickets" style="width: 180px;">
                    <f:facet name="header">  
                        What I got shared 
                    </f:facet>  




                    <p:column>  
                        <f:facet name="header">  
                            User name:
                        </f:facet>  
                        <h:outputText value="#{tickets.owner.userName} " />  
                    </p:column>  



                    <p:column>  
                        <f:facet name="header">  
                            Referrer:  
                        </f:facet>  
                        <h:outputText value="#{tickets.referer.userName}" />  
                    </p:column>  

                    <p:column>  
                        <f:facet name="header">  
                            Event name:  
                        </f:facet>  
                        <h:outputText value="#{tickets.share.name}" />  
                    </p:column>
                    <p:column>  
                        <f:facet name="header">  
                            Event description:  
                        </f:facet>  
                        <h:outputText value="#{tickets.share.description}" />  
                    </p:column>
                    <p:column>  
                        <f:facet name="header">  
                            Started date:  
                        </f:facet>  
                        <h:outputText value="#{tickets.share.startDate}" />  
                    </p:column>

                    <p:column>  
                        <f:facet name="header">  
                            Place:  
                        </f:facet>  
                        <h:outputText value="#{tickets.share.place}" />  
                    </p:column>
                    <p:column>  
                        <f:facet name="header">  
                            Budget:  
                        </f:facet>  
                        <h:outputText value="#{tickets.share.budget}" />  
                    </p:column>
                    <p:column>  
                        <f:facet name="header">  
                            Reward:  
                        </f:facet>  
                        <h:outputText value="#{tickets.share.reward}" />  
                    </p:column>
                </p:dataTable>

            </h:form> 
            </p:fieldset>


    </h:body>
</html>

